package com.winning.zjjh.entity;

import javax.xml.bind.annotation.*;
import java.io.Serializable;
import java.util.List;

/**
 * @Author: xkh@winning.com.cn
 * @Desc: TODO
 * @Date: 2019-03-19 17:40
 **/
@XmlRootElement(name = "Request")
@XmlType(propOrder = {"header", "body"}, namespace = "")
public class RequestEntity implements Serializable {

    private HeaderEntity header;

    private List body;

    @XmlElement(name = "Header", nillable = true)
    public HeaderEntity getHeader() {
        return header;
    }

    public void setHeader(HeaderEntity header) {
        this.header = header;
    }

    @XmlElementRefs({
            @XmlElementRef(type = ChfsEntity.class),
            @XmlElementRef(type = Ch42Entity.class),
            @XmlElementRef(type = YcjaEntity.class),
            @XmlElementRef(type = EbgcEntity.class),
            @XmlElementRef(type = RegCardEntity.class),
            @XmlElementRef(type = FirstVisitEntity.class),
            @XmlElementRef(type = FurtherVisitEntity.class),
            @XmlElementRef(type = Childbirth_MaternalEntity.class),
            @XmlElementRef(type = PregnancyHistoryEntity.class),
            @XmlElementRef(type = EbdjjkEntity.class),
            @XmlElementRef(type = XsefsEntity.class),
            @XmlElementRef(type = JktjEntity.class),
    })
    public List getBody() {
        return body;
    }

    public void setBody(List body) {
        this.body = body;
    }

}
